package org.wlldTest.task;

import java.util.Comparator;

public class NormSort implements Comparator<MyPosition> {
    @Override
    public int compare(MyPosition m1, MyPosition m2) {
        if (m1.getNorm() < m2.getNorm()) {
            return -1;
        } else if (m1.getNorm() > m2.getNorm()) {
            return 1;
        }
        return 0;
    }
}
